﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Merge.BLL.CaverForm
{
    public partial class CaverForm : Form
    {
        CaverConfigForm caverConfigForm;
        CaverInfoForm caverInfoForm;

        public CaverForm()
        {
            InitializeComponent();
            caverConfigForm = new CaverConfigForm();
            caverInfoForm = new CaverInfoForm();
            CaverFormInit();
            
        }

        private void CaverForm_Load(object sender, EventArgs e)
        {
            InitForm();
        }
        private void InitForm()
        {
            //
            caverConfigForm.FormBorderStyle = FormBorderStyle.None;
            caverConfigForm.Size = CaverConfigFormPanel.Size;
            caverConfigForm.BackColor = this.BackColor;
            caverConfigForm.TopLevel = false;
            caverConfigForm.Dock = DockStyle.Fill;
            CaverConfigFormPanel.Controls.Add(caverConfigForm);
            caverConfigForm.Show();

            //
            caverInfoForm.FormBorderStyle = FormBorderStyle.None;
            caverInfoForm.Size = CaverInfoPanel.Size;
            caverInfoForm.BackColor = this.BackColor;
            caverInfoForm.TopLevel = false;
            caverInfoForm.Dock = DockStyle.Fill;
            CaverInfoPanel.Controls.Add(caverInfoForm);
            caverInfoForm.Show();
        }
        private void CaverFormInit()
        {
            CaverNnumberA11 = new CaverCell("A11", 111, ref panelA11, ref Caver.CaveA11);
            CaverNnumberA12 = new CaverCell("A12", 112, ref panelA12, ref Caver.CaveA12);
            CaverNnumberA13 = new CaverCell("A13", 113, ref panelA13, ref Caver.CaveA13);
            CaverNnumberA14 = new CaverCell("A14", 114, ref panelA14, ref Caver.CaveA14);
            CaverNnumberA15 = new CaverCell("A15", 115, ref panelA15, ref Caver.CaveA15);

            CaverNnumberA21 = new CaverCell("A21", 121, ref panelA21, ref Caver.CaveA21);
            CaverNnumberA22 = new CaverCell("A22", 122, ref panelA22, ref Caver.CaveA22);
            CaverNnumberA23 = new CaverCell("A23", 123, ref panelA23, ref Caver.CaveA23);
            CaverNnumberA24 = new CaverCell("A24", 124, ref panelA24, ref Caver.CaveA24);
            CaverNnumberA25 = new CaverCell("A25", 125, ref panelA25, ref Caver.CaveA25);

            CaverNnumberA31 = new CaverCell("A31", 131, ref panelA31, ref Caver.CaveA31);
            CaverNnumberA32 = new CaverCell("A32", 132, ref panelA32, ref Caver.CaveA32);
            CaverNnumberA33 = new CaverCell("A33", 133, ref panelA33, ref Caver.CaveA33);
            CaverNnumberA34 = new CaverCell("A34", 134, ref panelA34, ref Caver.CaveA34);
            CaverNnumberA35 = new CaverCell("A35", 135, ref panelA35, ref Caver.CaveA35);

            CaverNnumberB11 = new CaverCell("B11", 211, ref panelB11, ref Caver.CaveB11);
            CaverNnumberB12 = new CaverCell("B12", 212, ref panelB12, ref Caver.CaveB12);
            CaverNnumberB13 = new CaverCell("B13", 213, ref panelB13, ref Caver.CaveB13);
            CaverNnumberB14 = new CaverCell("B14", 214, ref panelB14, ref Caver.CaveB14);
            CaverNnumberB15 = new CaverCell("B15", 215, ref panelB15, ref Caver.CaveB15);

            CaverNnumberB21 = new CaverCell("B21", 221, ref panelB21, ref Caver.CaveB21);
            CaverNnumberB22 = new CaverCell("B22", 222, ref panelB22, ref Caver.CaveB22);
            CaverNnumberB23 = new CaverCell("B23", 223, ref panelB23, ref Caver.CaveB23);
            CaverNnumberB24 = new CaverCell("B24", 224, ref panelB24, ref Caver.CaveB24);
            CaverNnumberB25 = new CaverCell("B25", 225, ref panelB25, ref Caver.CaveB25);

            CaverNnumberB31 = new CaverCell("B31", 231, ref panelB31, ref Caver.CaveB31);
            CaverNnumberB32 = new CaverCell("B32", 232, ref panelB32, ref Caver.CaveB32);
            CaverNnumberB33 = new CaverCell("B33", 233, ref panelB33, ref Caver.CaveB33);
            CaverNnumberB34 = new CaverCell("B34", 234, ref panelB34, ref Caver.CaveB34);
            CaverNnumberB35 = new CaverCell("B35", 235, ref panelB35, ref Caver.CaveB35);
        }

        public static CaverCell CaverNnumberA11;
        public static CaverCell CaverNnumberA12;
        public static CaverCell CaverNnumberA13;
        public static CaverCell CaverNnumberA14;
        public static CaverCell CaverNnumberA15;

        public static CaverCell CaverNnumberA21;
        public static CaverCell CaverNnumberA22;
        public static CaverCell CaverNnumberA23;
        public static CaverCell CaverNnumberA24;
        public static CaverCell CaverNnumberA25;

        public static CaverCell CaverNnumberA31;
        public static CaverCell CaverNnumberA32;
        public static CaverCell CaverNnumberA33;
        public static CaverCell CaverNnumberA34;
        public static CaverCell CaverNnumberA35;

        public static CaverCell CaverNnumberB11;
        public static CaverCell CaverNnumberB12;
        public static CaverCell CaverNnumberB13;
        public static CaverCell CaverNnumberB14;
        public static CaverCell CaverNnumberB15;

        public static CaverCell CaverNnumberB21;
        public static CaverCell CaverNnumberB22;
        public static CaverCell CaverNnumberB23;
        public static CaverCell CaverNnumberB24;
        public static CaverCell CaverNnumberB25;

        public static CaverCell CaverNnumberB31;
        public static CaverCell CaverNnumberB32;
        public static CaverCell CaverNnumberB33;
        public static CaverCell CaverNnumberB34;
        public static CaverCell CaverNnumberB35;

    }
}
